package com.android.asminject;


public class PrintUtils {

    public static void printText(String str) {
        System.out.println(str);
        System.out.println("*************************************************");

    }

    public static void printObject(String name, Object value) {
        if (value == null) {
            System.out.println("null");
        } else {
            System.out.println(name + value.getClass().getSimpleName() + "，参数值：" + value);
        }
        System.out.println("*************************************************");

    }

    public static void printSpendTime(String methodName, long startTime) {
        System.out.println(methodName + " 耗时：" + (System.currentTimeMillis() - startTime) + " ms");
        System.out.println("*************************************************");
    }

}

